package com.example.crm.service.Imp;

import com.example.crm.mapper.ProductMapper;
import com.example.crm.entity.Product;
import com.example.crm.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Resource
    private ProductMapper productMapper;

    @Override
    public List<Product> findAll(String prodName, String prodType, String prodBatch, Integer offset, Integer pageSize) {
        return productMapper.findAll(prodName,prodType,prodBatch,offset,pageSize);
    }

    @Override
    public int count(String prodName, String prodType, String prodBatch) {
        return productMapper.count(prodName,prodType,prodBatch);
    }
}
